<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<style type="text/css">
.title {
	width: 200px;
	white-space: nowrap;
	word-break: keep-all;
	overflow: hidden;
	text-overflow: ellipsis;
}
</style>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<div class="webpart3 contentarea">
			<div class="webpart-head">
				<div class="webpart-head-item">
					发送查询 
				</div>
			</div>
			<div class="webpart-main">
				<div class="webpart-main-item" style="padding-top: 12px;">
					<div class="search">
						<form method="get">
							<table cellpadding="0" cellspacing="0" align="center" width="100%">
								<tbody>
								<tr>
									<td>手机号码:</td>
									<td>
										<input type="text" name="recvmobileno" id="recvmobileno"
											class="input-txt" value="${recvmobileno}" />
									</td>								
									<td>收件人:</td>
									<td>
										<input type="text" name="recvcustomerid" id="recvcustomerid"
											class="input-txt" value="${recvcustomerid}" />
									</td>
									<td>
										发送时间:
									</td>
									<td>
										<input class="input-txt" readonly="readonly" id="senddate"
											name="senddate" value="${senddate}"
											onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
									</td>
 								</tr>
								<tr>
									<td  align="center" colspan="6">
										<input type="submit" class="linkbtn2" value="查询" />
										<input type="button" class="linkbtn2" value="清空"
											onclick="location.href='${path}/sms/index';"/>
									</td>
								</tr>
								</tbody>
							</table>
						</form>
					</div>
					<table cellpadding="0" cellspacing="0"
						class="dg_borderstyle trStyleTable" style="margin-top: 15px;">
						<tr>
							<th>
								序号
							</th>
							<th>
								收件人
							</th>
							<th>
								手机号码
							</th>
							<th>
								内容
							</th>
							<th>
								发送日期
							</th>
							<th>
								状态
							</th>
						</tr>

						<c:forEach items="${pagination.resultList}" var="message" varStatus="ind">
							<tr>
								<td align="center">
									${(pagination.page-1)*10+(ind.index+1)}
								</td>
								<td align="center">
								
									${message.recvcustomerid}
								</td>
								<td align="center">
									${message.recvmobileno}
								</td>
								<td align="center">
								<div style="display: block;overflow: hidden;text-overflow: ellipsis;
										 white-space: nowrap;width: 85px;" title="${message.smscontext}">
									${message.smscontext}
									</div>
								</td>
								<td align="center">
									<c:if test="${message.chnname != '待发送'}">
									<fmt:formatDate value="${message.senddate}"
										pattern="yyyy-MM-dd HH:mm " />
									</span>
								</c:if>	
								</td>
								<td align="center">
									${message.chnname}
								</td>
							</tr>
						</c:forEach>

					</table>
					<!----------- 翻页导航 ------------------>
					<div class="dg_pagerstyle">
						<div class="pageinfo">
							<c:if test="${not empty pagination.multiPage}">
							   第${pagination.page }页 | 共${pagination.totalPages }页/${pagination.totalRows }条记录
						</c:if>
						</div>
						<div class="pagebtn">
							${pagination.multiPage}
						</div>
					</div>
					</div>
					<div class="webpart-foot">
						<div class="webpart-foot-item">
						</div>
					</div>
				</div>
			</div>
			<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>